package com.changgou.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zero
 * @date 2020/7/15
 */

@Configuration
public class RabbitMQConfig {

    public static final String ORDER_TAKE = "order_take";

    @Bean
    public Queue queue(){
        return new Queue(ORDER_TAKE);
    }


}
